'use strict';

const bcrypt = require('bcryptjs');

module.exports = {
  bhash(str) {
    return bcrypt.hashSync(str, 10);
  },
  bcompare(str, hash) {
    return bcrypt.compareSync(str, hash);
  },
};
